package com.ruoyi.books.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.books.mapper.BooksPictureMapper;
import com.ruoyi.books.domain.BooksPicture;
import com.ruoyi.books.service.IBooksPictureService;

/**
 * 非遗图片汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-01
 */
@Service
public class BooksPictureServiceImpl implements IBooksPictureService 
{
    @Autowired
    private BooksPictureMapper booksPictureMapper;

    /**
     * 查询非遗图片汇总
     * 
     * @param pictureId 非遗图片汇总主键
     * @return 非遗图片汇总
     */
    @Override
    public BooksPicture selectBooksPictureByPictureId(Long pictureId)
    {
        return booksPictureMapper.selectBooksPictureByPictureId(pictureId);
    }

    /**
     * 查询非遗图片汇总列表
     * 
     * @param booksPicture 非遗图片汇总
     * @return 非遗图片汇总
     */
    @Override
    public List<BooksPicture> selectBooksPictureList(BooksPicture booksPicture)
    {
        return booksPictureMapper.selectBooksPictureList(booksPicture);
    }

    /**
     * 新增非遗图片汇总
     * 
     * @param booksPicture 非遗图片汇总
     * @return 结果
     */
    @Override
    public int insertBooksPicture(BooksPicture booksPicture)
    {
        return booksPictureMapper.insertBooksPicture(booksPicture);
    }

    /**
     * 修改非遗图片汇总
     * 
     * @param booksPicture 非遗图片汇总
     * @return 结果
     */
    @Override
    public int updateBooksPicture(BooksPicture booksPicture)
    {
        return booksPictureMapper.updateBooksPicture(booksPicture);
    }

    /**
     * 批量删除非遗图片汇总
     * 
     * @param pictureIds 需要删除的非遗图片汇总主键
     * @return 结果
     */
    @Override
    public int deleteBooksPictureByPictureIds(Long[] pictureIds)
    {
        return booksPictureMapper.deleteBooksPictureByPictureIds(pictureIds);
    }

    /**
     * 删除非遗图片汇总信息
     * 
     * @param pictureId 非遗图片汇总主键
     * @return 结果
     */
    @Override
    public int deleteBooksPictureByPictureId(Long pictureId)
    {
        return booksPictureMapper.deleteBooksPictureByPictureId(pictureId);
    }
}
